import Vue from 'vue'
import App from './App'
import store from './store'

import checkScope from '@/utils/handle_scope'
import miniapp_share from '@/Mixins/miniapp_share'
import cce_toolkit from '@/utils/cce_toolkit'
import CCE_loading from '@/utils/cce_loading'
const evnConfig = require('./config')
const {
	cce_ajax, //接口
} = require('@/api')
Vue.config.productionTip = false

// 挂载全局变量，方便组件内使用，分别是：工具箱、ajax、环境配置、scope权限管理
Vue.prototype.$cce_toolkit = cce_toolkit //工具箱
Vue.prototype.$cce_ajax = cce_ajax //ajax
Vue.prototype.$cce_envConfig = evnConfig //环境变量
Vue.prototype.$CCE_loading = new CCE_loading() //全局loading
// #ifndef H5
Vue.prototype.$cce_checkScope = checkScope //获取权限scope
// #endif


App.mpType = 'app'

// #ifndef H5
   Vue.mixin(miniapp_share) //非H5平台，注入分享Mixin
// #endif

const app = new Vue({
	...App,
	store,
})
app.$mount()
